-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wordpress - Add Site Prefix #203
Conversation
@@ -191,7 +198,6 @@ def self.process_post(post, db, options, page_name_list) | |||
excerpt = content[0...more_index] | |||
end | |||
if options[:more_anchor] | |||
more_link = "more" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vim pointed out this variable wasn't being used.
I have successfully used this on |
@@ -191,7 +198,6 @@ def self.process_post(post, db, options, page_name_list) | |||
excerpt = content[0...more_index] | |||
end | |||
if options[:more_anchor] | |||
more_link = "more" | |||
content.sub!(/<!-- *more *-->/, | |||
"<a id=\"more\"></a>" + | |||
"<a id=\"more-#{post[:id]}\"></a>") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they wanted it here ^^
Thanks for the patch! Just one comment. :) |
Thanks @parkr, I've returned that line |
Great! Thanks, @dirkkelly. One more thing – can you please add this option to the documentation page for this importer? |
@parkr I think I already have then? Sorry if I'm misunderstanding the request. |
@dirkkelly Ah! Sorry about that. I was convinced we setup our documentation differently and I read that incorrectly. Thanks. |
I came across #185 when trying to import a multi site installation.
To give some background, the way that this installation has it configured, the sites are each stored as wp_x_ prefixes.
In order to support this I have added the
site-prefix
option which is prepended before all calls to these specific tables.Import site
wp_2_